package com.ympc.service;

import com.ympc.pojo.Teacher;

import java.util.List;

public interface TeacherService {
    // 根据userId获取教师信息
    Teacher getTeacherByUserId(Integer userId);
    
    // 根据id获取教师信息
    Teacher getTeacherById(Integer id);
    
    // 更新教师信息
    boolean updateTeacherInfo(Teacher teacher);
    
    // 修改密码
    boolean changePassword(Integer userId, String oldPassword, String newPassword);
    
    // 创建教师信息
    boolean createTeacherInfo(Teacher teacher);
    
    // 获取所有教师
    List<Teacher> getAllTeachers();
}

